<template>
	<div class="newslist-container">
		<view class="item">
			<view class="top">
				<view class="image">
					<image :src="img_url" mode="aspectFill"></image>
				</view>
				<view class="title">{{ title }}</view>
			</view>
			<view class="info">
				<view class="source">{{ source }}</view>
				<view class="comment">{{ comment_count }}条评论</view>
				<view class="datetime">{{ datetime }}</view>
			</view>
		</view>
	</div>
</template>

<script>
	export default {
		props: {
			article_type: {
				default: 0,
				type: Number
			},
			comment_count: {
				default: 0,
				type: Number
			},
			content: {
				default: '',
				type: String
			},
			datetime: {
				default: '0 天前',
				type: String
			},
			img_url: {
				default: '',
				type: String
			},
			source: {
				default: '',
				type: String
			},
			title: {
				default: '',
				type: String
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.item {
		width: 100%;
		height: 170px;
		border: 1px solid #eee;
		.top {
			display: flex;
			.image {
				display: flex;
				justify-content: center;
				align-items: center;
				width: 40%;
				image {
					width: 90%;
					height: 80%;
				}
			}
			.title {
				margin-left: 10px;
				margin-top: 10px;
				width: 60%;
			}
			height: 70%;
			width: 100%;
		}
		.info {
			height: 30%;
			display: flex;
			align-items: center;
			font-size: 13px;
			font-weight: bold;
			view {
				margin-left: 10px;
			}
		}
	}
</style>
